@extends('backend.layouts.main')
@section('content')
    <div class="box box-primary">
        <h4>学员信息</h4>
        <div class="box-body">
            <table class="table table-striped ">
                <tr>
                    <th style="width: 30%">学员昵称</th>
                    <td>{{$courseBookingData->getStudentBelongsTo->nickname}}</td>
                </tr>
                <tr>
                    <th>学员头像</th>
                    <td><img src="{{$courseBookingData->getStudentBelongsTo->images}}"
                             style="width: 150px;height: 150px"></td>
                </tr>
                <tr>
                    <th>地区</th>
                    <td>{{$courseBookingData->getStudentBelongsTo->country}}
                        -{{$courseBookingData->getStudentBelongsTo->province}}
                        -{{$courseBookingData->getStudentBelongsTo->city}}</td>
                </tr>
                <tr>
                    <th>学员手机号</th>
                    <td>{{$courseBookingData->getStudentBelongsTo->phone}}</td>
                </tr>
                <tr>
                    <th>状态</th>
                    <td>
                        @if($courseBookingData->getStudentBelongsTo->status==0)
                            <span class="label label-success">正常</span>
                        @else
                            <span class="label label-danger">禁用</span>
                        @endif
                    </td>
                </tr>
                <tr>
                    <th>预约时间</th>
                    <td>{{date("Y-m-d H:i:s",$courseBookingData->created_at)}}</td>
                </tr>
            </table>
        </div>
    </div>

    <div class="box box-primary">
        <h4>教练信息</h4>
        <div class="box-body">
            <table class="table table-striped ">
                <tr>
                    <th style="width: 30%">教练姓名</th>
                    <td>{{$courseBookingData->getUserBelongsTo->name}}</td>
                </tr>
                <tr>
                    <th style="width: 30%">教练用户名</th>
                    <td>{{$courseBookingData->getUserBelongsTo->username}}</td>
                </tr>
                <tr>
                    <th>教练头像</th>
                    <td><img src="{{$courseBookingData->getUserBelongsTo->images}}"
                             style="width: 150px;height: 150px"></td>
                </tr>
                <tr>
                    <th>预约次数</th>
                    <td>{{$courseBookingData->getUserBelongsTo->by_number}}</td>
                </tr>
                <tr>
                    <th>教练等级</th>
                    <td>{{$courseBookingData->getUserBelongsTo->level}}</td>
                </tr>
                <tr>
                    <th>教练简介</th>
                    <td>{{$courseBookingData->getUserBelongsTo->synopsis}}</td>
                </tr>
                <tr>
                    <th>教练状态</th>
                    <td>
                        @if($courseBookingData->getUserBelongsTo->status==0)
                            <span class="label label-danger">禁用</span>
                        @else
                            <span class="label label-success">正常</span>
                        @endif
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <div class="box box-primary">
        <h4>课程信息</h4>
        <div class="box-body">
            <table class="table table-striped ">
                <tr>
                    <th style="width: 30%">课程名称</th>
                    <td>{{DANCE[$courseBookingData->dances_id]}}</td>
                </tr>
                <tr>
                    <th>课程类型</th>
                    <td>
                        @if($courseBookingData->getDancesBelongsTo->status==0)
                            <span class="label label-success">团课<span>
                        @else
                                        <span class="label label-success">私教</span>
                        @endif
                    </td>
                </tr>
                <tr>
                    <th>课程封面</th>
                    <td><img src="{{$courseBookingData->getDancesBelongsTo->images}}"
                             style="width: 150px;height: 150px"></td>
                </tr>
                <tr>
                    <th>课程开始时间</th>
                    <td>{{date('Y-m-d H:i:s',$courseBookingData->getDancesBelongsTo->begin_time)}}</td>
                </tr>
                <tr>
                    <th>课程结束时间</th>
                    <td>{{date('Y-m-d H:i:s',$courseBookingData->getDancesBelongsTo->end_time)}}</td>
                </tr>
                <tr>
                    <th>课程费用</th>
                    <td>{{$courseBookingData->getDancesBelongsTo->course_price}}</td>
                </tr>
                <tr>
                    <th>课程VIP费用</th>
                    <td>{{$courseBookingData->getDancesBelongsTo->vip_price}}</td>
                </tr>
                <tr>
                    <th>上课地点</th>
                    <td>{{$courseBookingData->getDancesBelongsTo->address}}</td>
                </tr>
                <tr>
                    <th>课程内容</th>
                    <td>{{$courseBookingData->getDancesBelongsTo->contents}}</td>
                </tr>
                <tr>
                    <th>预约状态</th>
                    <td>
                        @if($courseBookingData->status==0)
                            <span class="label label-success">已预约</span>
                        @else
                            <span class="label label-danger">已取消</span>
                        @endif
                    </td>
                </tr>
            </table>
        </div>
    </div>
@endsection
